import axios from 'axios';
export const login = (data) => {
    return axios.post("v1/login", data)
}
export const register = (data) => {
    return axios.post('/api/v1/auth/register', data)
}
export const menu = () => {
    return axios.get('v1/menus')
}
export const user = (data) => {
    return axios.get('v1/users', { params: data })
}
export const goods = (data) => {
    return axios.get('v1/goods', { params: data })
}
export const categories = (data) => {
    return axios.get('v1/categories',data)
}